package com.albermark.photoorganizer.filefilter;

/**
 * 
 * @author Nuno Ferreira
 *
 */
public class PhotosFileFilter extends ExtensionFileFilter {

	private enum PhotoExtension {
		JPG,
		GIF,
		PNG;
		
		public static String[] toStringArray() {
			PhotoExtension[] photoExtensions = values();
			
			String[] result = new String[photoExtensions.length];
			
			for (int i = 0; i < photoExtensions.length; i++) {
			
				result[i] = photoExtensions[i].name();
			
			}
			return result;
		}
	}
	
	public PhotosFileFilter() {
		super(PhotoExtension.toStringArray());
	}
}
